package cn.com.nes.mybatis.callcenter.mapper;

import cn.com.nes.mybatis.callcenter.entity.WorkOrderInfo;
import cn.com.nes.site.entity.vo.workOrder.AuditWorkOrderVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

public interface WorkOrderDataMapper extends  BaseMapper<WorkOrderInfo> {

    int workOrderReview(@Param("workOrderId") String workOrderId, @Param("audited") Integer audited ,@Param("auditComments") String auditComments,@Param("auditorId") String auditorId) throws Exception;

    int auditWorkOrder(@Param("vo")AuditWorkOrderVo vo);

    void removeAuditedRecord(Long workOrderId);

    void resetAuditState(Long workOrderId);

    void insertAuditedRecord(AuditWorkOrderVo vo);

    /**
     * 修改工单状态接口
     *
     * @param workOrderInfo 工单数据
     * @return 操作数量
     */
    int updateWorkOrderInfoStatus(WorkOrderInfo workOrderInfo);
}
